<?php


namespace App\event;


interface TcpEventInterface
{
    public static function connect(\Swoole\Server $server, int $fd, int $reactorId);

    public static function receive(\Swoole\Server $server, int $fd, int $reactorId, string $data);

    public static function close(\Swoole\Server $server, int $fd, int $reactorId);

    public static function shutdown(\Swoole\Server $server);


}